package com.springboot.test.repository;

import com.springboot.test.domain.User;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by Kang on 2017/8/12.
 */
public interface UserRepository extends JpaRepository<User, Integer> {

    /**
     * 通过名字查询用户
     * @param name
     * @return
     */
    public List<User> findByNameLike(String name);
}
